﻿using JY.Wpf.Core.ViewModelBases;

namespace JY.Wpf.TestForMetro.ViewModels.ControlDemoViewModels
{
    public class TagDemoViewModel : ViewModelBase
    {
        #region # 变量

        #endregion

        #region # 构造器
        /// <summary>
        /// 构造器
        /// </summary>
        public TagDemoViewModel()
        {
        }
        #endregion

        #region # 属性

        #endregion

        #region # Command方法

        public void AddTag(TagContainer tagPanel)
        {
            tagPanel.Items.Add(new Tag {Content = "子标题"});
        }

        #endregion

        #region # 方法

        #endregion

        #region # 获取页面 —— object GetView(object context = null)
        /// <summary>
        /// 获取页面
        /// </summary>
        /// <param name="context">页面</param>
        /// <returns></returns>
        public override object GetView(object context = null)
        {
            return ResolveMediator.Resolve<TagDemoView>();
        }
        #endregion
    }
}
